//   src/store/index.js

import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import header from './modules/header'

Vue.use(Vuex)
const store = new Vuex.Store({
  modules: {
    header
  },
  getters
})
export default store
/*
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    flag:true
  },
  mutations: {
    SET_FLAG(state,flags){
      state.flag = flags
    }
  },
  actions: {
    setFlag({commit},flag){
      commit('SET_TOKEN', flag)
    }
  },
  modules: {
  }
})*/
